/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package marketplace_bankserver;

/**
 *
 * @author zno
 */

public class Command 
{
    

    private String userName;
    private float amount;
    private CommandName commandName;

    public Command() {}
    public Command(CommandName commandName, String userName, float amount) {
            this.commandName = commandName;
            this.userName = userName;
            this.amount = amount;
    }
    
    public String getUserName() {
            return userName;
    }

    public float getAmount() {
            return amount;
    }
    public void setAmount (float amount) {
        this.amount = amount;
    }
    public void setCommandName (CommandName commandName) {
        this.commandName = commandName;
    }

    public CommandName getCommandName() {
            return commandName;
    }

    
}
